const less = require('less');

function lessLoader(source){
  let css;
  less.render(source, (err, r) => {
    css = r.css
  })
  return css;
}

module.exports = lessLoader;